
import { _decorator, Component } from 'cc';
import { DEBUG } from 'cc/env';
import { aa } from '../frame/FrameCore';
const { ccclass, property } = _decorator;

@ccclass('AdCtrl')
export class AdCtrl extends Component {

    onEnable() {
        if (!DEBUG) {
            aa.utils.clearUI(this.node);
        }

    }



    onGo(event: Event, customEventData: string) {
        window.open(customEventData);
        aa.utils.clearUI(this.node);
    }


}

